import {Page} from "./common"
export interface User {
    userName:string;
    userId:string;
    state:0|1|2|3;
}

// 用户列表
export interface UserList{
    list:UserForm,
    page:Page
}
// 获取列表用户参数
export interface UserListParams extends Page{
    userName?:string;
    userIf?:string;
    state?:0|1|2|3;
}

// 删除
export interface UserDelete{
    userId:number[];
}

interface RoleList{
    id:number;
    roleName:number;
}
// 编辑和新增表单填写内容
export interface UserForm {
    userId?:number;
    userName:string;
    userEmail:string;
    sex?:number;
    mobile:string;
    job:string;
    state:number;
    roleList:RoleList[];
    deptId:string[];
}
